package diamondServer.clientserver.threadpool;

import java.util.concurrent.Callable;

public abstract class Task implements Callable<String> {

	String message;
	
	public Task(String msg) {
		this.message = msg;
	}
	
	@Override
	public String call() {
		
		this.toDo();
		return "";
		
//		Timestamp t = new Timestamp(System.currentTimeMillis());
//		return Thread.currentThread() + 
//			" Type : " + this.getClass().toString() + 
//			" Message : " + this.message + 
//			" Task ended at : " + t.toString();
	}

	public abstract void toDo() ;
	
}
